<html>
<head>
    <meta charset="UTF-8"/>
    <title>SpringBoot整合Freemarker</title>
</head>
<bofy>
    <div>
        <table border="1" align="center" width="50%">
            <tr>
                <th>名称</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>

            <tbody>
            <#list list as item>
            <tr>
                <td>${item.name}</td>
                <td>${item.age}</td>
                <td>
                    <#if item.sex="0">
                        男
                    <#else>
                        女
                    </#if>
                </td>
            </tr>
            </#list>
            </tbody>
        </table>
    </div>
</bofy>
</html>